import request from '@/utils/request'

export function getOutsourcePage(search) {
    return request({
      url: '/Outsource/GetPageList',
      method: 'post',
      data: search
    })
  }
  export function AddOutsource(OutsourceInfo) {
    return request({
      url: '/Outsource/AddOutsourcePo',
      method: 'post',
      data: OutsourceInfo
    })
  }
  export function DeleteOutsource(os_id) {
    return request({
      url: '/Outsource/DeleteOutsourcePo?os_id='+os_id,
      method: 'post',
      data: os_id
    })
  }
  export function UpdateOutsource(OutsourceInfo) {
    return request({
      url: '/Outsource/UpdateOutsourcePo',
      method: 'post',
      data: OutsourceInfo
    })
  }
  export function GetOutsourcePoID(os_id) {
    return request({
      // url:'http://localhost:51905/api/RoleDbManager/GetPageList'
      url: '/Outsource/GetOutsourcePoID?os_id=' + os_id,
      method: 'post',
      data: os_id
    })
  }